package com.homestead.domain.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "user")
@Data
@NoArgsConstructor
public class UserPo {
    @Id
    private Long id;

    private String name;

    private Integer age;

    private byte[] friends;

    public UserPo(Long id, String name, Integer age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }
}
